﻿using System.Collections.Generic;

namespace JinYuan.VirtualDataLibrary
{
    public class MesConfig
    {
        /// <summary>
        /// 工厂代码
        /// </summary>
        public string siteCode = "";
        /// <summary>
        /// 产线编号
        /// </summary>
        public string lineCode = "";
        /// <summary>
        /// 设备编号
        /// </summary>
        public string equipNum = "";
        /// <summary>
        /// MES密码
        /// </summary>
        public string mesPwd = "";
        /// <summary>
        /// MES账户
        /// </summary>
        public string mesUserName = "";

        /// <summary>
        /// 电表编号
        /// </summary>
        public List<string> electricMeterNum = new List<string>();

        /// <summary>
        /// 风速仪个数
        /// </summary>
        public int AntiDustAirSpeedCount = 0;
        /// <summary>
        /// 风速仪编号
        /// </summary>
        public List<string> listAntiDustAirSpeedNum = new List<string>();

        /// <summary>
        /// 权限
        /// </summary>
        public string userLevel = "";
        /// <summary>
        /// 物料编码
        /// </summary>
        public string MaterialCode = "";
        /// <summary>
        /// 生产型号
        /// </summary>
        public string ModelName = "";
        /// <summary>
        /// 是否上传MES
        /// </summary>
        public bool isUpMes = false;
        /// <summary>
        /// 是否刷卡？
        /// </summary>
        public bool Isshuaka = false;
        /// <summary>
        /// 是否登录成功？
        /// </summary>
        public bool IsLoginOK = false;
        /// <summary>
        /// 是否登录MES成功？
        /// </summary>
        public bool IsLoginMesOK = false;
        /// <summary>
        /// 获取MES参数
        /// </summary>
        public bool IsMesParam = false;
        /// <summary>
        /// MES超时
        /// </summary>
        public long MesOutTime = 0;
        /// <summary>
        /// 焊接点个数
        /// </summary>
        public int weldNum = 0;
        /// <summary>
        /// 是否2个电表(此功能仅适用于908-6负极焊接两台设备共用一台敢接机只有一个电表)
        /// </summary>
        public bool IsTwoDianBiao = false;
        /// <summary>
        /// 电表编号
        /// </summary>
        public string ElectricMeterNum = "";
        /// <summary>
        /// 除尘风速
        /// </summary>
        public decimal antiDustAirSpeed = 0;

        /// <summary>
        /// 电机旋转速度
        /// </summary>
        public decimal dianjiXzSpeed = 0;
        /// <summary>
        /// 设备状态上传时间
        /// </summary>
        public int EquStatuasTime = 0;
        /// <summary>
        /// 获取服务器数据
        /// </summary>
        public bool IsGet_Server = true;
        /// <summary>
        /// -3A出站数据存储到-3C
        /// </summary>
        public bool IsGet_3C = true;
        public int _外观检测条码计数 = 0;

        /// <summary>
        /// Guid
        /// </summary>
        public string guidStr = "";
        /// <summary>
        /// OK1分档
        /// </summary>
        public string Grading1 = "K77";
        /// <summary>
        /// OK2分档
        /// </summary>
        public string Grading2 = "K77";
        /// <summary>
        /// OK3分档
        /// </summary>
        public string Grading3 = "K77";
        /// <summary>
        /// OK4分档
        /// </summary>
        public string Grading4 = "K77";
        /// <summary>
        /// OK5分档
        /// </summary>
        public string Grading5 = "K77";
        /// <summary>
        /// OK6分档
        /// </summary>
        public string Grading6 = "K77";

        /// <summary>
        /// 设备状态
        /// </summary>
        public int DeviceState = 0;

        public bool m_run_AlarmMark = false;

        public bool m_run_IdelMark = false;

        /// <summary>
        /// 存储服务器IP地址
        /// </summary>
        public string RotueServerIP = "192.168.2.108";
        /// <summary>
        /// 员工权限校验接口
        /// </summary>
        public string LoginMesUrl = "http://10.6.1.152/core/api/public/equipment/base/user/login/verify";

        /// <summary>
        /// 设备参数设定值变更
        /// </summary>
        public string ChangeParamSetValueMesUrl = "http://10.6.1.152/core/api/public/param/setting/change";

        /// <summary>
        /// 设备参数设定值请求
        /// </summary>
        public string ParamSetpointRequestMesUrl = "http://10.6.1.152/core/api/public/param/setting/request";

        /// <summary>
        /// 原材料投入信息
        /// </summary>
        public string MaterialInputInfoMesUrl = "http://10.6.1.152/core/api/public/raw/material/input/un/first/process";

        /// <summary>
        /// 产品进站信息（组装）
        /// </summary>
        public string InPutStationMesUrl = "http://10.17.96.41/core/api/public/in/station/process/currency";

        /// <summary>
        /// 产品出站信息（组装）
        /// </summary>
        public string OutStationMesUrl = "http://10.17.96.41/core/api/public/out/station/process/turn/equip";

        /// <summary>
        /// 设备过程加工参数接口
        /// </summary>
        public string EquProcessProcessParamMesUrl = "http://10.6.1.152/core/api/public/product/process/param/process";

        /// <summary>
        /// 产品结果加工参数
        /// </summary>
        public string ResultProcessParamMesUrl = "http://10.6.1.152/core/api/public/product/process/param/result";
        /// <summary>
        /// 设备报警信息
        /// </summary>
        public string AlarmCurrencyMesUrl = "http://10.6.1.152/core/api/public/equipment/alarm/currency";
        /// <summary>
        /// 设备运行状态
        /// </summary>
        public string StatusMesUrl = "http://10.6.1.152/core/api/public/eve/pm/eqm/run/status/operation";
        /// <summary>
        /// 能耗数据
        /// </summary>
        public string WattrMeterUrl = "http://10.6.1.157/core/api/public/eve/pm/energy/consumption/collection/submit";

        /// <summary>
        /// 设备风速接口
        /// </summary>
        public string CollectData = "http://10.1.3.66:3000/mock/15/eve_api/ems/iot/upload_device_collect_data";
        /// <summary>
        /// 设备风速接口
        /// </summary>
        public string OkNgParamMesUrl = "http://10.17.128.206/core/api/public/eve/pm/eqm/new/grading";
        /// <summary>
        /// 分档
        /// </summary>
        public string GradingMesUrl = "http://10.54.50.1:8082/core/api/public/eve/pm/eqm/new/grading";

    }
}
